from shapes import *

world = TurtleWorld()
red = Turtle()
red.delay = .001

def Questions():
    print " 1: circle"
    print " 2: rhombus"
    print " 3: square"
    print " 4: right_tri"
    print " 5: para"
    print " 6: sss_tri"
    print " 7: equilateral_tri"
    print " 8: change the turtles color"
    print " 9: Exit"
    print
    answer = raw_input(" Please Chose a Number: ")
    return answer
    
    
def drawShape(t, option):
    if option =="1":
        size = raw_input("How big is it? ")
        size = float(size)
        arc(t, size)
    elif option == "2":
        height = input(" How tall do you want it? ")
        width = input(" How large is its angles? ")
        rhom(t, height, width)
    elif option == "3":
        size = raw_input("How big is it? ")
        size = float(size)
        square(t, size)
    elif option == "4":
        height = input(" How tall is it? ")
        base = input(" How large is the base? ")
        right_tri(t, height, base)
    elif option == "6":
        side1 = input(" What is the first sides length? ")
        side2 = input( "What is the second sides length? ")
        side3 = input( "What is the seconds side length? ")
        sss_tri(t, side1, side2, side3)
    elif option == "7":
        side = input("How big is the triangle? ")
        equilateral_tri(t, side)
    elif option == "5":
        width = input( " what is the width? ")
        height = input( "What is the height? ")
        big_angle = input( "What is the bigest angle? ")
        para(t, width, height, big_angle)
    elif option == "8":
        print " color avalible: red, blue, green, black"
        c = raw_input("color: ")
        if (c == "blue"
                or c == "green"
                or c == "red"
                or c == "black"):
            t.color = c
    else:
        print " cant do that color, using red"
        t.fd()
        t.bk()
    
    else: 
        print " Number unknown..."
    
   
                


def run():
    while True:
        opt = Questions()
        if opt == "9":
            wait_for_user()
            exit()
        drawShape(red, opt)
    
run()